package com.spring.hed.factory.abstracts;

public class CSFactory implements AbsFactory {

    public Pizza createPizza(String type) {
        Pizza pizza = null;
        if (type.equals("cheese")){
            pizza = new CSCheesePizza();
        }
        if (type.equals("pepper")){
            pizza = new CSPepperPizza();
        }
        return pizza;
    }
}
